package com.kaikeba.dao;

import com.kaikeba.bean.User;

import java.util.List;
import java.util.Map;

public interface BaseUserDao {
    Map<String, Integer> console();
    boolean insert(User user);
    boolean delete(int id);
    boolean deleteByPhone(String phone);
    boolean updateByPhone(String phone, User user);
    List<User> findAll(int limit, int offset, int pageNumber);
    User findByPhone(String phone);
}
